#include "Edge.h"

Edge::Edge()
{
}

Edge::Edge(int leftid, int rightid, double flow_rate,double len)
{
    left_id = leftid;
    right_id = rightid;
    edge_flow_rate = flow_rate;
    length = len;
}

int Edge::getLeftId()
{
    return left_id;
}

int Edge::getRightId()
{
    return right_id;
}

double Edge::getEdgeFlowRate()
{
    return edge_flow_rate;
}

double Edge::getLength()
{
    return length;
}

void Edge::setLeftId(double leftid)
{
    left_id = leftid;
}

void Edge::setRightId(double rightid)
{
    right_id = rightid;
}

void Edge::setEdgeFlowRate(double flow_rate)
{
    edge_flow_rate = flow_rate;
}

void Edge::setLength(double len)
{
    length = len;
}
